package com.dyz.model;

import java.util.ArrayList;
import java.util.List;
import java.util.TreeSet;

public class Report {
	
	private static Report rt = null;
	
	private TreeSet<Invoice> ts = new TreeSet<Invoice>(new MyCompare());
	
	
	public void addInvoice(Invoice i){
		ts.add(i);
	}
	
	public TreeSet<Invoice> getInvoice(){

		return ts;
	}
	
	public static Report getInstance(){
		if(rt == null)
			rt = new Report();
		
		return rt;
			
	}

}
